package com.itheima.domain;

import java.util.List;

/**
 * ClassName:SysUser
 * Package:com.itheima.domain
 * Description:
 * Date:2021/11/5 18:08
 * Author:liu.min
 */
public class SysUser {
    private int id;
    private String username;
    private String email;
    private String password;
    private String phonenum;

    private List<SysRole> rolelist;

    public List<SysRole> getRolelist() {
        return rolelist;
    }

    public void setRolelist(List<SysRole> rolelist) {
        this.rolelist = rolelist;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    @Override
    public String toString() {
        System.out.println("toString方法");
        return "SysUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", phonenum='" + phonenum + '\'' +
                ", rolelist=" + rolelist +
                '}';
    }
}
